package com.szgz.platform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.szgz.platform.model.SharedIDEEnvironment;

import java.util.List;

/**
 * 共享IDE环境Mapper接口
 */
@Mapper
public interface SharedIDEEnvironmentMapper extends BaseMapper<SharedIDEEnvironment> {
    
    /**
     * 根据组ID查询共享IDE环境
     */
    SharedIDEEnvironment selectByGroupId(@Param("groupId") String groupId);
    
    /**
     * 查询所有未删除的共享IDE环境
     */
    List<SharedIDEEnvironment> selectAllActive();
    
    /**
     * 根据创建者查询共享IDE环境
     */
    List<SharedIDEEnvironment> selectByCreatedBy(@Param("createdBy") String createdBy);
    
    /**
     * 根据状态查询共享IDE环境
     */
    List<SharedIDEEnvironment> selectByStatus(@Param("status") String status);
} 